# Methods added to this helper will be available to all templates in the application.
module ApplicationHelper
	def organization_form_action
		if controller.action_name == "new" or controller.action_name == "create"
			"create"
		else
			"update"
		end
	end
	
	def submit_button_title
		if controller.action_name == "new" or controller.action_name == "create"
			"Добавить"
		else
			"Сохранить"
		end
	end
	
	def person_photo_form_action
		if controller.action_name == "new" or controller.action_name == "create"
			"create"
		else
			"update"
		end
	end
end
